package com.lzq.mq.common.event;


import com.lzq.mq.common.event.model.Event;

public interface Listener<E extends Event> {

    /**
     * 回调通知
     *
     * @param event 事件对象
     */
    void onReceive(E event) throws Exception;
}
